#include "test.h"
#include <iostream>
#include <string>
#include "../FreeWay.h"
using namespace std;
test::test()
{
    //ctor
    run = true;
}

test::~test()
{
    //dtor
}


void test::svc()
{

    string command, text;
    command = text = "";

    while(run)
    {
        cout << "command:" << endl;
        cin >> command;
        if(command == "send")
        {
            cout << "text" << endl;
            cin >> text;
            FreeWaySendData(text.c_str(),text.length());

        }

    }

}
